#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>

int pow(int x,int y){
	if(y>1)
		return (x*pow(x,y-1));
	else
	{
		if(y==1)
			return (x);
		else
			return 1;
	}
}	
int oct(char *c){
        int r = 0;
		size_t i;
    for(i=0;c[i]!=0;++i)
        r+=pow(100,i)*c[i];
    return r;
}

int main(){
	int fp;
	char *buff = malloc(16);
	fp = open("test.bmp",O_RDONLY,0666);
	size_t t;
	read(fp,buff,2);
	int s = oct(buff);
	printf("test\n%d\n",sizeof(int));
	return 1;
}
